<% for plant in @plants %>
<div id="plant<%= plant.id %>">
	<%= plant.family.apg_name -%>&nbsp;<%= h(plant.genus) -%>&nbsp;<%= h(plant.specific_epithet) -%>
	<%= link_to 'Show', {:action => 'show', :id => plant}, { :class => "action" } -%>
	&nbsp;
	<%= link_to_remote "Delete",
	    {:url=>{
	        :controller=>"herbarium",
	        :action=>"destroy_plant", 
	        :id=>plant.id},
	    :update=>"plant#{plant.id}"},
	    {:confirm => 'Are you sure?', :class => "action"}
	-%>
	</div>
<% end %>

<%= link_to 'Previous page', { :page => @plant_pages.current.previous } if @plant_pages.current.previous %>&nbsp;
<%= link_to 'Next page', { :page => @plant_pages.current.next } if @plant_pages.current.next %>
